package com.wenjiang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwj
 * @since 2021-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MallUserAddress implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID)
    //转为字符串  防止前端会丢失精度
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long addressId;
   //用户id
    private Long userId;

    //收件人
    private  String userName;

    //收货电话
    private String userPhone;

    //用户地址
    private String userAddress;


}
